<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="-1" />
	<title>ST Manager</title>
	<link href="imagem/favicon.png" type="image/png" rel="shortcut icon" />
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/css/skytef.css" />
</h:head>
<h:body>
	<ui:include src="header.xhtml" />
	<div class="central">
		<h:form>
			<p:panel header="Edição de Usuário: " resizable="false"
				style="width: 97.5%; margin-top:1px;">
				<h:panelGrid id="display" columns="8" cellpadding="4"
					style="margin:0 auto;">
					<h:outputText value="Nome do Usuário: "
						style="font-size: 14px;font-weight:bold;" />
					<p:inputText id="maskcnpj" value="#{UsuarioBean.nome}" />
					<p:commandButton id="selectButton" ajax="false"
						image="ui-icon-search" update="form:UsuarioPanel"
						actionListener="#{UsuarioBean.Buscar}" />
				</h:panelGrid>
			</p:panel>
			<p:panel resizable="false" id="UsuarioPanel"
				visible="#{UsuarioBean.visible}"
				style="width: 97.5%; margin-top:10px;" ajax="false">
				<h:panelGrid columns="4" cellpadding="4" style="margin:0 auto;">
					<h:outputText value="Id: "
						style="font-size: 14px;font-weight:bold;" />
					<h:outputText value="#{UsuarioBean.usuario.id}"
						style="font-weight:bold; font-size: 14px;" />
					<h:outputText value="Nome: "
						style="font-size: 14px;font-weight:bold;" />
					<h:outputText value="#{UsuarioBean.usuario.nome}"
						style="font-weight:bold; font-size: 14px;" />
				</h:panelGrid>
				<h:panelGrid columns="4" cellpadding="4" style="margin:0 auto;">
					<h:outputText value="Senha Atual: "
						style="font-size: 14px;font-weight:bold;" />
					<h:inputSecret label="Senha" value="#{UsuarioBean.senhaAtual}"
						style="font-size: 18px; width: 185px" />
					<h:outputText value="Nova Senha: "
						style="font-size: 14px;font-weight:bold;" />
					<h:inputSecret id="senha" label="Senha"
						style="font-size: 18px; width: 185px" value="#{UsuarioBean.senha}" />
					<h:outputText value="Confirmação de Senha: "
						style="font-size: 14px;font-weight:bold;" />
					<h:inputSecret id="Confsenha" label="Senha"
						style="font-size: 18px; width: 185px"
						value="#{UsuarioBean.confsenha}" />
				</h:panelGrid>
				<p:commandButton ajax="false" value="Salvar"
					update="form:UsuarioPanel"
					actionListener="#{UsuarioBean.Atualizar}" />
				<p:growl id="growl" showDetail="true" life="3000" />
			</p:panel>
		</h:form>
	</div>
	<div>
		<p:panel id="cm" style="background: transparent; border: 0px;">
			<ui:include src="#{DashboardBean.currentMenu}" />
		</p:panel>
		<p:panel id="cr" style="background: transparent; border: 0px;">
			<ui:include src="#{DashboardBean.currentRodape}" />
		</p:panel>
	</div>
</h:body>
</html>
